Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • xtdhreg variable not found error when estimating margins*

    Hi Statalist

    Thanks in advance for your help. I have been advised to use xtdhreg for zero-inflated strongly balanced panel dataset covering 3 waves of data collection, with 12,231 observations in total.

    But when I run post estimations margins test, Stat returns "variable _one not found".

    Code:
     qui xtdhreg cap_eggs_week_adj lnexp_weekly remit hh_marital, ptobit
     estimates store model2
     margins, dydx(lnexp_weekly remit) atmeans
    remit hh_marital are dummy variables; cap_eggs_week_adj lnexp_weekly are continuous.

    If I use regular dhreg (not xtdhreg) it returns the margins normally.

    Please advise me on how to produce margins.

    Additionally, does anyone else have experience using xtdhreg who could advise me in interpreting the results? Would I be better off using a different model estimation?

    Thank you. Apologies in advance if I've formatted this wrong, this is my first post.

    Zip
Working...
X